package com.qf.exceptions;

import com.qianfeng.smsplatform.common.constants.ResutlDataEnum;

/*
 * @Data: 2021/7/14 8:19
 * */
public class MybaseException extends RuntimeException {

    private String code;

    public MybaseException(String message,String code) {
        super(message);
        this.code = code;
    }

    public MybaseException(ResutlDataEnum dataEnum) {
        super(dataEnum.getMsg());
        this.code=dataEnum.getCode();
    }

    public String getCode() {
        return code;
    }
}
